for m in leapfrog leapfrog_expl ncyc1 ncyc2 ncyc3 ncyc4 ncyc_expl; do
  sed -e 's/modelname=.*$/modelname="'${m}'"/g' < plot_barocl_day9.ncl |ncl
done
